<?php echo $header; ?>

<?php if(isset($error)) { ?> 
    <div class="warning"><?php echo $error; ?></div>
<?php } ?>

<div class="box">
    <div class="left"></div>
    <div class="right"></div>
    <div class="heading">
        <h1 style="background-image: url('view/image/mail.png');"><?php echo $form_title; ?></h1>
        <div class="buttons">
             <a id="save_subscriber" href="#" class="button"><span><?php echo $text_save; ?></span></a>
             <a onclick="location = '<?php echo $cancel; ?>'" class="button"><span><?php echo $text_cancel; ?></span></a>
        </div>
    </div>
    
    <div class="content">      
        <form id="edit_subscriber" action="<?php echo $action; ?>" method="post" enctype="multipart/form-data">
            <?php if (1==0){ ?>
                <table class="list">                         
                    <tbody>
                        <tr>
                            <td class="right" width="15%"><?php echo $text_email; ?><span class="required">*</span></td>
                            <td class="left" width="35%"><input type="text" id="email" value="<?php echo $email; ?>" name="email" style="width:300px;"></td>
                            <td class="right" width="15%"><?php echo $text_date; ?></td>
                            <td class="left" width="35%"><input type="text" disabled="disabled" value="<?php echo $date; ?>" name="date" style="background: #C0C0C0;"></td>
                        </tr>                            
                    </tbody>
                </table>
            <?php } ?>
            <table class="form">                         
                <tbody>
                    <tr>
                        <td class="right"><?php echo $text_email; ?><span class="required">*</span></td>
                        <td class="left"><input type="text" id="email" value="<?php echo $email; ?>" name="email" style="width:300px;"></td>
                    </tr>
                    <tr>
                        <td class="right"><?php echo $text_name; ?><span class="required">*</span></td>
                        <td class="left"><input type="text" id="name" value="<?php echo $name; ?>" name="name" style="width:300px;"></td>
                    </tr>                    
                    <tr>
                        <td class="right" ><?php echo $text_date; ?></td>
                        <td class="left"><input type="text" disabled="disabled" value="<?php echo $date; ?>" name="date" style="background: #C0C0C0;"></td>
                    </tr>  
                </tbody>
            </table>
            <input type="hidden" id="action" name="action" value="<?php echo $action; ?>" />   
        </form>                    
    </div>
</div>
    
<?php echo $footer; ?>

<script type="text/javascript"><!--
    jQuery(document).ready(function(){
        jQuery('#save_subscriber').click(function(even){
            even.preventDefault(); 

            jQuery('#edit_subscriber').submit();
        });
    });         
//-->
</script>
